import {
  ADD_TAB,
  REDUCE_TAB,
  SET_ALL_TAB
} from '../constant'

//创建增加一个 tab 的action动作对象
export const addTab = item => ({type: ADD_TAB, data: item})
export const reduceTab = item => ({type: REDUCE_TAB,data: item})
export const setAllTab = item => ({type: SET_ALL_TAB,data: item})